<html><head><title>WriteProgramData</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">WriteProgramData()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#006666"><b>WriteProgramData</b></font>(Program, *Buffer, Size)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Writes the data from the buffer to the specified programs input (stdin). 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Program</i></td>
<td width="90%"> 
The program to use. It must have been started before with <a href="runprogram.html">RunProgram()</a> and the <font color="#924B72">#PB_Program_Write</font> flag. 

</td></tr>
<tr><td><i>*Buffer</i></td>
<td> 
The memory buffer to write the data from. 
The special value <font color="#924B72">#PB_Program_Eof</font> can be used instead of a real memory buffer to make 
the program receive an EOF (end of file) in its input (which tells the program that there will be no more input). 
The 'Size' parameter is ignored in this case. After calling WriteProgramData() with this special value, 
no more input may be written to the program. 

</td></tr>
<tr><td><i>Size</i></td>
<td> 
The size to write. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

The number of bytes actually written. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="writeprogramstring.html">WriteProgramString()</a>, <a href="writeprogramstringn.html">WriteProgramStringN()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=waitprogram.html>WaitProgram()</a> - <a href=index.html>Process Index</a> - <a href=writeprogramstring.html>WriteProgramString()</a> ->

</body></html>